home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / stngpasm / pure_c / include / sting / port.sh < prev    next >
Encoding:
Text File  |  1997-08-18  |  2.7 KB  |  67 lines

  1. ;----------------------------------------------------------------------------
  2. ; File name:    PORT.SH                Revision date:    1997.08.18
  3. ; Authors:    Peter Rottengatter &        Creation date:    1997.08.10
  4. ;        Ronald Andersson
  5. ;----------------------------------------------------------------------------
  6. ; Purpose:
  7. ;
  8. ;    Defines port interfacing for STinG
  9. ;
  10. ;----------------------------------------------------------------------------
  11. ;Required header declarations:
  12. ;
  13. ;    .include    "uran\STRUCT.SH"
  14. ;    .include    "sting\PORT.SH"
  15. ;
  16. ;copy the above to the header of your program and 'uncomment' the includes
  17. ;
  18. ;----------------------------------------------------------------------------
  19. ;    Internal port descriptor.
  20. ;
  21. struct    prt_des
  22.     char_p        prt_des_name        ;Name of port
  23.     int16        prt_des_type        ;Type of port
  24.     int16        prt_des_active        ;Flag for port active or not
  25.     uint32        prt_des_flags        ;Type dependent operational flags
  26.     uint32        prt_des_ip_addr        ;IP address of this network adapter
  27.     uint32        prt_des_sub_mask    ;Subnet mask of attached network
  28.     int16        prt_des_mtu        ;Maximum packet size to go through
  29.     int16        prt_des_max_mtu        ;Maximum allowed value for mtu
  30.     int32        prt_des_stat_sd_data    ;Statistics of sent data
  31.     struc_p        prt_des_send        ;Link to first entry in send queue
  32.     int32        prt_des_stat_rcv_data    ;Statistics of received data
  33.     struc_p        prt_des_receive        ;Link to first entry in receive queue
  34.     int16        prt_des_stat_dropped    ;Statistics of dropped datagrams
  35.     struc_p        prt_des_driver        ;Driver descriptor to handle this port
  36.     struc_p        prt_des_next        ;Next port in port chain
  37. d_end    prt_des
  38. ;
  39. ;----------------------------------------------------------------------------
  40. ;    Port driver descriptor.
  41. ;
  42. struct    drv_des
  43.     func_p        drv_des_set_state    ;Setup and shutdown port
  44.     func_p        drv_des_send        ;Send pending packets
  45.     func_p        drv_des_receive        ;Receive pending packets
  46.     char_p        drv_des_name        ;Name of driver
  47.     char_p        drv_des_version        ;Version of driver in "xx.yy" format
  48.     uint16        drv_des_date        ;Compile date in GEMDOS format
  49.     char_p        drv_des_author        ;Name of programmer
  50.     struc_p        drv_des_next        ;Next driver in driver chain
  51. d_end    drv_des
  52. ;
  53. ;----------------------------------------------------------------------------
  54. ;    Link Type Definitions
  55. ;
  56. L_SER_PTP    equ    1    ;  Serial point to point type link
  57. L_PAR_PTP    equ    2    ;Parallel point to point type link
  58. L_SER_BUS    equ    3    ;  Serial            bus type link
  59. L_PAR_BUS    equ    4    ;Parallel            bus type link
  60. L_SER_RING    equ    5    ;  Serial           ring type link
  61. L_PAR_RING    equ    6    ;Parallel           ring type link
  62. L_MASQUE    equ    7    ;Masquerade type
  63. ;
  64. ;----------------------------------------------------------------------------
  65. ; End of file:    PORT.SH
  66. ;----------------------------------------------------------------------------
  67.